import Vue from 'vue'
import App from './App'
import './static/fonts/iconfont/iconfont.css'


Vue.config.productionTip = false

import loading from './components/loading.vue'

import showModel from './components/showModel.vue'

Vue.component('loading', loading)

Vue.component('showModel', showModel)
App.mpType = 'app'
import common from './common/common.js'
Vue.prototype.$common = common
Vue.prototype.backHome = common.backHome
Vue.prototype.back = common.back
Vue.prototype.toUrl = common.toUrl
Vue.prototype.showToast = common.showToast
Vue.prototype.$Toast = common.Toast
Vue.prototype.$imgUrls = common.imgUrls
Vue.prototype.$Tel = common.Tel
Vue.prototype.$showLoading = common.showLoading
Vue.prototype.$hideLoading = common.hideLoading
Vue.prototype.$model = common.model
Vue.prototype.$BarTitle = common.BarTitle

import http from './api/request.js'
Vue.prototype.$http = http

import reg from './common/reg.js'
Vue.prototype.$reg = reg

import config from './common/config.js'
Vue.prototype.imgUrl = config.imgUrl
Vue.prototype.$imgUrl = config.imgUrl
Vue.prototype.bid = config.bid
Vue.prototype.staticUrl = config.staticUrl
Vue.prototype.echatUrl = config.echatUrl
Vue.prototype.baseUrl = config.baseUrl


import Weixin from './common/jweixin.js'
Vue.prototype.$scanQRCode = Weixin.scanQRCode


import uView from "uview-ui";
Vue.use(uView);

import store from '@/store/index.js'
Vue.prototype.$store = store




const app = new Vue({
	store,
	...App
})
app.$mount()